package com.design.pattern.single;

/**
 * @author wangyingjie
 * @date
 * @remark
 */
public class SingletonDemo {
    private static Singleton singleton;

    private SingletonDemo() {
    }

    public static Singleton getInstance(){
        if (singleton == null){
            singleton = new Singleton();
        }
        return singleton;
    }
}
